package com.huike.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysUserPageVO {
    /**
     createBy	"admin"
     createTime	"2021-03-31 03:12:10"
     updateBy	null
     updateTime	null
     userId	1
     deptId	103
     userName	"admin"
     nickName	"admin"
     email	"admin@163.com"
     phonenumber	"15888888888"
     sex	"1"
     avatar	""
     salt	null
     status	"0"
     delFlag	"0"
     loginIp	"127.0.0.1"
     loginDate	"2021-03-31T03:12:10.000+0800"
     dept	Object { deptId: 103, deptName: "24", leader: "李峰", … }
     roles	[]
     roleIds	null
     admin	true
     */
    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private Integer userId;
    private Integer deptId;
   private  String userName;
   private  String nickName;
   private  String email;
   private  String phonenumber;
   private  String sex;
   private  String avatar;
   private  String salt;
   private  Integer status;
   private  Integer delFlag;
   private  String loginIp;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime loginDate;
    private DeptVO dept;
    private String[] roles;
    private  String roleIds;
    private  boolean admin;
    private LocalDate beginTime;
    private LocalDate endTime;

}
